package stackexchange.analyzer;

public class ExpertAnalyzerFactory {

	public ExpertAnalyzer getExpertAnalyzer(String analyzer) {
		if (analyzer.equalsIgnoreCase("zScoreAnalyzer")) {
			return new ZScoreAnalyzer();
		}
		else if (analyzer.equalsIgnoreCase("PRAnalyzer")) {
			return new PageRankAnalyzer();
		}
		else if (analyzer.equalsIgnoreCase("ReachAnalyzer")) {
			return new ReachAnalyzer();
		}
		else if (analyzer.equalsIgnoreCase("AnswerAnalyzer")) {
			return new AnswerAnalyzer();
		}
		return null;
	}

}
